package day01.ti.ti02;

public class BuRu extends Dongwu{
    private String daxiang;
    private String liang;
    private String changjinglu;

    public BuRu() {
    }

    public BuRu(String daxiang, String liang, String changjinglu) {
        this.daxiang = daxiang;
        this.liang = liang;
        this.changjinglu = changjinglu;
    }

    public String getDaxiang() {
        return daxiang;
    }

    public void setDaxiang(String daxiang) {
        this.daxiang = daxiang;
    }

    public String getLiang() {
        return liang;
    }

    public void setLiang(String liang) {
        this.liang = liang;
    }

    public String getChangjinglu() {
        return changjinglu;
    }

    public void setChangjinglu(String changjinglu) {
        this.changjinglu = changjinglu;
    }
    public void dongwu(){
        System.out.println("哺乳类有  "+getDaxiang()+getLiang()+getChangjinglu());
    }
}
